package com.jneagle.xlstool.bzwgjmx.stack.bean.entity;

import com.dwarfeng.subgrade.stack.bean.entity.Entity;
import com.dwarfeng.subgrade.stack.bean.key.LongIdKey;

/**
 * 原始部件。
 *
 * @author DwArFeng
 * @since 1.0.0
 */
public class RawPart implements Entity<LongIdKey> {

    private static final long serialVersionUID = 7537995938618382469L;

    /**
     * 主键。
     */
    private LongIdKey key;
    /**
     * 部件号。
     */
    private String partNo;
    /**
     * 原始文件名称。
     */
    private String originFileName;
    /**
     * 解析器名称。
     */
    private String parserName;
    /**
     * 冲突标记。
     */
    private boolean conflictFlag;
    /**
     * 追加标记。
     */
    private boolean appendFlag;

    public RawPart() {
    }

    public RawPart(
            LongIdKey key, String partNo, String originFileName, String parserName, boolean conflictFlag,
            boolean appendFlag
    ) {
        this.key = key;
        this.partNo = partNo;
        this.originFileName = originFileName;
        this.parserName = parserName;
        this.conflictFlag = conflictFlag;
        this.appendFlag = appendFlag;
    }

    @Override
    public LongIdKey getKey() {
        return key;
    }

    @Override
    public void setKey(LongIdKey key) {
        this.key = key;
    }

    public String getPartNo() {
        return partNo;
    }

    public void setPartNo(String partNo) {
        this.partNo = partNo;
    }

    public String getOriginFileName() {
        return originFileName;
    }

    public void setOriginFileName(String originFileName) {
        this.originFileName = originFileName;
    }

    public String getParserName() {
        return parserName;
    }

    public void setParserName(String parserName) {
        this.parserName = parserName;
    }

    public boolean isConflictFlag() {
        return conflictFlag;
    }

    public void setConflictFlag(boolean conflictFlag) {
        this.conflictFlag = conflictFlag;
    }

    public boolean isAppendFlag() {
        return appendFlag;
    }

    public void setAppendFlag(boolean appendFlag) {
        this.appendFlag = appendFlag;
    }

    @Override
    public String toString() {
        return "RawPart{" +
                "key=" + key +
                ", partNo='" + partNo + '\'' +
                ", originFileName='" + originFileName + '\'' +
                ", parserName='" + parserName + '\'' +
                ", conflictFlag=" + conflictFlag +
                ", appendFlag=" + appendFlag +
                '}';
    }
}
